<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="page information" >
    <h3 class="big-title">我的个人资料</h3>
    <div class="page-container">
        <h3 class="infor-title">个人资料</h3>
        <script id="persionScript" type="text/html">
            <li class="infor-label">姓名</li>
            <li class="infor-answer">{{data.name}}</li>
            <div class="clear-both"></div>
            <li class="infor-label">头像</li>
            <li class="infor-answer">
                <img src="{{data.headImg}}" class="img" alt="">
            </li>
            <div class="clear-both"></div>
            <li class="infor-label">会员等级</li>
            <li class="infor-answer">{{data.userClass | userClass}}</li>
            <div class="clear-both"></div>
            <li class="infor-label">手机号</li>
            <li class="infor-answer">{{data.phoneNum}}</li>
            <div class="clear-both"></div>
            <li class="infor-label">我的推荐人</li>
            <li class="infor-answer">{{data.recommendPhone}}</li>
            <div class="clear-both"></div>
            <li class="infor-label">省份证号码</li>
            <li class="infor-answer">{{data.idNumber}}</li>
            <div class="clear-both"></div>
        </script>
        <ul class="clearfloat infor-content" id="persion">
        </ul>

    </div>
</div>

<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/moment-2.2.1.js"></script>
<script src="js/template-web.js"></script>
<script src="js/jdgj/config.js"></script>
<script>
    var userId = config.getUserId();
    // 个人资料
    template.defaults.imports.userClass = function(value){
        return config.userClass(value);
    };
    $.get(config.baseUrl+"/user/getUserInfo.json",{id:userId}, function(result) {
        if(result.status == 200) {
            var html = template("persionScript",result);
            $("#persion").html(html);
        }
    });
    // 账户明细
   /* template.defaults.imports.accountType = function(value){
        return config.accountType(value);
    };
    $.get(config.baseUrl+"/account/quaryAccount.json",{userId:userId}, function(result) {
        if(result.status == 200) {
            var html = template("accountScript",result);
            $("#accountHtml").html(html);
        }
    });*/
</script>
</body>
</html>